import Vue from 'vue'
import VueRouter from 'vue-router'
import ArticlesColumns from '../views/ArticlesColumns.vue'
import Home from '../views/Home.vue'
import Login from '../views/Login.vue'
import UploadPage from '../views/UploadPage.vue'
import User from '../views/User.vue'
import VideoPage from '../views/VideoPage.vue'
import PDFPage from '../views/PDFPage.vue'
import EditPage from '../views/EditPage.vue'
import Search from '../views/Search.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/articlescolumns',
    name: 'ArticlesColumns',
    component: ArticlesColumns
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/uploadPage',
    name: 'UploadPage',
    component: UploadPage
  },
  {
    path: '/user',
    name: 'User',
    component: User
  },
  {
    path: '/videoPage',
    name: 'VideoPage',
    component: VideoPage
  },
  {
    path: '/PDFPage',
    name: 'PDFPage',
    component: PDFPage
  },
  {
    path: '/EditPage',
    name: 'EditPage',
    component: EditPage
  },
  {
    path: '/Search',
    name: 'Search',
    component: Search
  },
]

const router = new VueRouter({
  routes
})

export default router
